<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>修改信息</title>
    <jsp:include page="head.jsp"></jsp:include>
</head>
<body>

<div class="x-body">
    <form accept-charset="UTF-8" action="${pageContext.request.contextPath}/updateStudent" class="layui-form"
          id="f_auto" method="post">
        <input type="hidden" value="${sessionScope.s.s_id}" name="s_id" id="s_id"/>
        <div class="layui-form-item">
            <label for="s_studentid" class="layui-form-label">
                <span class="f_sp">学号</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="s_studentid" name="s_studentid"
                       autocomplete="off" value="${sessionScope.s.s_studentid}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_name" class="layui-form-label">
                <span class="f_sp">姓名</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="s_name" name="s_name"
                       autocomplete="off" value="${sessionScope.s.s_name}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_sex" class="layui-form-label">
                <span class="f_sp">性别</span>
            </label>
            <div class="layui-input-inline" id="s_sex">
                <c:if test="${sessionScope.s.s_sex == '男'}">
                    <input type="radio" name="s_sex" id="s_male" value="男" title="男" checked="">
                    <input type="radio" name="s_sex" id="s_female" value="女" title="女">
                </c:if>
                <c:if test="${sessionScope.s.s_sex == '女'}">
                    <input type="radio" name="s_sex" id="s_male" value="男" title="男">
                    <input type="radio" name="s_sex" id="s_female" value="女" title="女" checked="">
                </c:if>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_age" class="layui-form-label">
                <span class="f_sp">年龄</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="s_age" name="s_age"
                       autocomplete="off" value="${sessionScope.s.s_age}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_phone" class="layui-form-label">
                <span class="f_sp">电话</span>
            </label>
            <div class="layui-input-inline">
                <input type="text" id="s_phone" name="s_phone"
                       autocomplete="off" value="${sessionScope.s.s_phone}" class="layui-input">
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_classid" class="layui-form-label">
                <span class="">*</span>班级编号
            </label>
            <div class="layui-input-inline">
                <select id="s_classid" name="s_classid">
                    <option value="">${sessionScope.s.s_classid}</option>
                    <c:forEach var="c" items="${classList}">
                        <option value="${c.c_classid}">${c.c_classid}</option>
                    </c:forEach>
                    <%--<option value="141">141</option>
                    <option value="151">151</option>
                    <option value="1703">1703</option>
                    <option value="1704">1704</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_classid" class="layui-form-label">
                <span class="">*</span>班级名
            </label>
            <div class="layui-input-inline">
                <select id="s_classname" name="s_classname">
                    <option value="">${sessionScope.s.s_classname}</option>

                    <c:forEach var="c" items="${classList}">
                        <option value="${c.c_classname}">${c.c_classname}</option>
                    </c:forEach>
                    <%--<option value="生物工程">生物工程</option>
                    <option value="软件工程">软件工程</option>
                    <option value="计算机">计算机</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="s_dormitoryid" class="layui-form-label">
                <span class="">*</span>寝室编号
            </label>
            <div class="layui-input-inline">
                <select id="s_dormitoryid" name="s_dormitoryid">
                    <option value="">${sessionScope.s.s_dormitoryid}</option>

                    <c:forEach var="c" items="${dormitoryList}">
                        <option value="${c.s_dormitoryid}">${c.s_dormitoryid}</option>
                    </c:forEach>

                    <%--                    <option value="" disabled>${sessionScope.s.s_dormitoryid}</option>--%>
                    <%--                    <option value="111">111</option>--%>
                    <%--                    <option value="112">112</option>--%>
                    <%--                    <option value="311">311</option>--%>
                    <%--                    <option value="322">322</option>--%>
                    <%--                    <option value="312">312</option>--%>
                    <%--                    <option value="313">313</option>--%>
                    <%--                    <option value="323">323</option>--%>
                    <%--                    <option value="423">423</option>--%>
                    <%--                    <option value="601">601</option>--%>
                    <%--                    <option value="602">602</option>--%>
                </select>
            </div>
        </div>

        <div class="layui-form-item" id="btn_xg">
            <button class="layui-btn" id="btn_on" lay-filter="updateForm" lay-submit="">
                修改
            </button>
        </div>
    </form>
</div>

<script>

</script>
</body>
</html>
